package com.swu.pad.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User {

	public final static String ROLE_TEACHER = "teacher";
	public final static String ROLE_STUDENT = "student";

	@Id
	@Column(name = "id")
	private String id;
	// 账号（学号）
	@Column(name = "username")
	private String username;
	// 密码
	@Column(name = "password")
	private String password;
	// 用户姓名
	@Column(name = "realname")
	private String realname;
	// 邮箱
	@Column(name = "email")
	private String email;
	// 性别
	@Column(name = "role")
	private String role;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

}
